<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<script src="/js/wangEditor.js">
			
		</script>
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<div id="div1" class="col-sm-12">
									<p th:utext="${content}"></p>
								</div>
								<input type="hidden" id="content" name="content" />
								<input type="hidden" id="leagueId" name="leagueId" th:value="${id}" />
								<input type="hidden" id="turn" name="turn" th:value="${turn}" />
								<input type="hidden" id="id" name="id" th:value="${synthesisDO?.id}" />
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/oupei/synthesis/add.js">
		
	</script>
	<script>
				$(function() {
					var E = window.wangEditor;
					var editor = new E('#div1');
					var $text1 = $('#content');
					 // 自定义菜单配置
				    editor.customConfig.menus = [
				    	'head',  // 标题
				        'bold',  // 粗体
				        'fontSize',  // 字号
				        'fontName',  // 字体
				        'italic',  // 斜体
				        'underline',  // 下划线
				        'strikeThrough',  // 删除线
				        'foreColor',  // 文字颜色
				        'justify',  // 对齐方式
				        'quote',  // 引用
				        'image'  // 插入图片
				    ];
				 // 自定义配置颜色（字体颜色、背景色）
				    editor.customConfig.colors = [
				        '#000000',
				        '#FF0000',
				        '#1c487f',
				        '#4d80bf',
				        '#c24f4a',
				        '#8baa4a',
				        '#7b5ba1',
				        '#46acc8',
				        '#f9963b',
				        '#ffffff'
				    ]
					editor.customConfig.onchange = function(html) {
						// 监控变化，同步更新到 textarea
						$text1.val(html)
					}
					editor.create()
					// 初始化 textarea 的值
					$text1.val(editor.txt.html())
				});
			</script>
</body>
</html>
